package me.zhengjie.modules.detailed_subject.controller;

import me.zhengjie.modules.detailed_subject.service.UserHeadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("head")
@CrossOrigin
public class UserHeadController {

    @Autowired
    private UserHeadService userService;

    //头像地址
    @GetMapping("gethead/{username}")
    public String gethead(@PathVariable String username){
       String head=userService.getheadmethod(username);
        return head;
    }
}
